package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
*
*
* @author quan
* @date 2021-11-21 16:40
*/
 

@Data
@TableName(value = "t_activity")
@Accessors(chain = true)
public class TActivity {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    @ApiModelProperty("标题")
    @TableField(value = "title")
    private String title;

    /**
     * 副标题
     */
    @ApiModelProperty("副标题")
    @TableField(value = "sub_title")


    private String subTitle;
    /**
     * 模板
     */
    @ApiModelProperty("模板")
    @TableField(value = "template")
    private String template;

    /**
     * 活动描述
     */
    @ApiModelProperty("活动描述")
    @TableField(value = "content")
    private String content;

    /**
     * 1活动开启
     */
    @ApiModelProperty("活动状态 1开启 2结束")
    @TableField(value = "status")
    private Integer status;

    /**
     * 图片路径
     */
    @ApiModelProperty("图片路径")
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 活动开始时间
     */
    @ApiModelProperty("活动开始时间")
    @TableField(value = "begin_time")
    private LocalDateTime beginTime;

    /**
     * 活动结束时间
     */
    @ApiModelProperty("活动结束时间")
    @TableField(value = "end_time")
    private LocalDateTime endTime;

    @TableField(value = "add_time")
    private LocalDateTime addTime;
}